package com.mxpio.erp.common.util;

public class FunctionUtil {

    public static void trueFunction(Boolean flag, MethodFunction function) {
        if (flag) {
            function.doing();
        }
    }

    public static void falseFunction(Boolean flag, MethodFunction function) {
        trueFunction(!flag, function);
    }




    @FunctionalInterface
    public interface MethodFunction{

        public void doing();


    }
}
